<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"></jsp:include>
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="4"/>
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<div class="alert alert-success w200 center-block text-center " style="display: none; " role="alert"></div>
					<ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li><a href="/question">问答管理</a></li>
						<li class="active">录入题目</li>
					</ol>
					<form class="form-horizontal" id="addForm" method="post" action="/question/add">
						<div class="form-group">
							<label class="col-sm-3 control-label">题目类型</label>
							<div class="col-sm-5">
								<c:forEach items="${questionTypeList }" var="questionType">
									<label class="radio-inline">
										<input type="radio" name="typeCode" value="${questionType.code }" checked="checked">
										${questionType.text }
									</label>
								</c:forEach>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">题目内容</label>
							<div class="col-sm-5 desc">
								<input type="text" class="form-control" id="questionContent" name="questionContent" placeholder="输入题目内容">
							</div>
						</div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">对应的房间编号</label>
                            <div class="col-sm-5 desc">
                                <input type="text" class="form-control" id="roomId" name="roomId" placeholder="输入房间编号">
                            </div>
                        </div>
						<div class="form-group">
							<label class="col-sm-3 control-label">关联答案</label>
							<div class="col-sm-5 desc">
								<input type="text" class="form-control" name="aId[]" placeholder="输入答案编号">
							</div>
							<div class="col-sm-1">
								<a id="js_add_answer" href="javascript:;" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i>添加答案</a>
							</div>
						</div>
						<div class="form-group" id="js_submit">
							<div class="col-sm-offset-3 col-sm-2">
								<button type="submit" class="btn btn-success">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
<script type="text/javascript" src="/static/vendor/jquery.validate/jquery.validate.js"></script>
<script type="text/javascript" src="/static/js/question/add.js"></script>
